<?php 
/*阅读的具体链接*/
	/*包含基本的配置文件*/
	include('config.php');
	/*强制转换传来的推送pid*/
	$pid=(int)$input->get('pid');
	/*pid小于1 无效推送*/
	if($pid<1){
		die('无效推送');
	}
	$sql="select * from page where pid='{$pid}' ";
	$blog=$db->query($sql)->fetch_array(MYSQLI_ASSOC);
?>

<!--阅读界面<>/!-->
<!DOCTYPE HTML>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
	<title><?php echo $setting['课程名称'];?></title>
	<?php include(PATH . '/header.inc.php');?>  <!--所有的页面都需加载这个文件></!-->
</head>
<body>
	<div class='container'>
			<div class="jumbotron">
				<img src="./image/top1.jpg" width="240" height="140" style="float:left"> 
				<h1>课程服务与管理平台V1.0</h1>
			</div>
				<!--导航条></!-->
				<ol class="breadcrumb">
				  <li><a href="index.php">首页</a></li>
				  <li><?php echo $blog['title'];?></li>
				</ol>
			<div class="col-md-3">
				<div class="panel panel-default">
				  <div class="panel-heading" >课程名称：<h2><?php echo $setting['课程名称'];?></h2></div>
				  <div class="panel-body">
				  	<div style="text-indent:2em;">
				  	 <p>简介：<?php echo $setting['课程简介'];?></p>
				  	</div>
				  </div>
				</div>
				

			</div>

			<div class="col-md-9">
		
				<div class="panel panel-default">
				  <div class="panel-heading" style="text-indent:2em;">
				   	<?php echo $blog['title'];?>	
				  </div>
				  <div class="panel-body">
				  	 <?php echo $blog['content'];?>
				  </div>
				</div>
	
            </div>	
	</div>
</body>
</html>